{if(!empty($recommend_list) && is_array($recommend_list))}
<div class="home-sale-layout wrapper home-sale-layout--one mt10">
    <div class="left-layout">      
        <ul class="tabs-nav">
            <?php $i =0 ;?>
            {foreach($recommend_list as $key => $val)}
            {if($key == 'goods')}
            <li {if($i === 0)} class="tabs-selected" {/if} ><i class="arrow"></i><h3>商品推荐</h3></li>
            {else /}
            <li {if($i === 0)} class="tabs-selected" {/if} ><i class="arrow"></i><h3>推荐服务商</h3></li>
            {/if}
            <?php $i++ ;?>
            {/foreach}
        </ul>
        <?php $i = 0 ;?>
        {foreach($recommend_list as $key => $val)}
        {if($key == 'goods' && !empty($val))}
        <div class="tabs-panel sale-goods-list {if($i !== 0)} tabs-hide {/if} ">
            <ul>
                {foreach($val as $val1)}
                <li>
                    <dl>
                        <!-- 推荐服务 -->
                        <dt class="goods-name">
                            <a target="_blank" href="{:url('index/goods/detail',['goods_id'=>$val1['id']])}" title="{$val1.goods_name}">
                                {$val1.goods_name}</a></dt>
                        <dd class="goods-thumb">
                            <a target="_blank" href="{:url('index/goods/detail',['goods_id'=>$val1['id']])}" title="{$val1.goods_name}">
                                <img default-url="{$val1.goods_image|img_url=360}" alt="{$val1.goods_name}" />
                            </a></dd>
                        <dd class="goods-price"><em>{$val1.goods_price|default='未定价'}</em></dd>
                        <dd class="goods-salenum ">成交量:<em class='red'>{$val1.goods_salenum|default='暂无记录'}</em></dd>
                        <dd class="goods-category"><em>{$val1.gc_name}</em></dd>
                        <dd class="goods-contactme con-hover">
                            <a class='' target='_blank' href='javascript:void(0)'>
                            </a>
                            {if($val1['qq'] || $val1['phone'])}
                            <div class="shop-rate-con" >
                                {if($val1['qq'])}
                                <p class="link_QQ">
                                    <a class="" target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin={$val1.qq}&amp;site=qq&amp;menu=yes58">
                                            QQ客服
                                    </a>
                                </p>
                                {/if}
                                {if($val1['phone'])}
                                <p class='link_Phone'>
                                    <a href='javascript:void(0)' target='_blank' >{$val1.phone}		                                          			</a>
                                </p>
                                {/if}
                            </div>
                            {else /}
                            <div class="shop-rate-con-no" >
                                快喊商家完善信息吧~
                            </div>
                            {/if}
                        </dd>
                        <dd class="goods-store-area"></dd>
                        <!-- 推荐服务 -->
                    </dl>
                </li>
                {/foreach}
            </ul>
        </div>
        {elseif($key == 'store' && !empty($val))}
        <div class="tabs-panel sale-goods-list {if($i !== 0)} tabs-hide {/if}">
            <ul>
                {foreach($val as $val1)}
                <li>
                    <dl>
                        <!-- 推荐服务商 start -->
                        <dt class="store-name">
                            <a target="_blank" href="{:url('index/store/index',['store_id'=>$val1['id']])}" title="{$val1.name}">
                                {$val1.name}</a></dt>
                        <dd class="store-thumb">
                            <a target="_blank" href="{:url('index/store/index',['store_id'=>$val1['id']])}" title="{$val1.name}">
                                <img default-url="{$val1.label|img_url=360}" alt="{$val1.name}" />
                            </a></dd>
                        <dd class="rate-ai-star store-score"><span class='score-title'></span><em><i style=" width: {$val1.store_credit_percent|default=100}%;"></i></em><span class='font-red'>{$val1.store_credit_average|default=5}分</span></dd>
                        <dd class="store-category" title="服务:{$val1.gc_name}">服务:{$val1.gc_name}</dd>
                        <dd class="store-sales">成交量:<span class='red'>{$val1.store_sales|default='暂无记录'}</span></span></dd>
                        <dd class="store-area"></dd>
                        <!-- 推荐服务商end -->
                    </dl>
                </li>
                {/foreach}
            </ul>
        </div>
        {/if}
        <?php $i++ ;?>
        {/foreach}
    </div>
</div>
{/if}